local juejing = fk.CreateSkill {
  name = "lvshi__juejing",
  tags = {Skill.Compulsory},
}

Fk:loadTranslationTable{
  ["lvshi__juejing"] = "绝境",
  [":lvshi__juejing"] = "锁定技，当你的体力值变化后，你摸一张牌，然后若你的体力上限大于1，你减1点体力上限，令手牌上限+2。",

  ["$lvshi__juejing1"] = "龙战于野，其血玄黄。",
}

juejing:addEffect(fk.HpChanged, {
  anim_type = "drawcard",
  on_use = function(self, event, target, player, data)
    player:drawCards(1, juejing.name)
    if player.maxHp > 1 then
      player.room:changeMaxHp(player, -1)
      player.room:addPlayerMark(player, "AddMaxCards", 2)
    end
  end,
})

return juejing
